@font-face {
  font-family: "Noto Math";
  src: url("../font/NotoSansMath-Regular.ttf")
       format("truetype");
  font-weight: 400;
  font-display: swap;
}

  /* Balanced Section Container */
  .objective-outline-section {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 55px 28px 45px; /* Balanced between 35px and 100px */
    background-color: #07111e;
    background-image: url('https://images.unsplash.com/photo-1509228468518-180dd4864904?auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow: hidden;
  }

  .outline-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      rgba(7, 17, 30, 0.94) 0%,
      rgba(5, 12, 22, 0.96) 50%,
      rgba(7, 17, 30, 0.98) 100%
    );
    z-index: 1;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }

  .math-watermark {
    position: absolute;
    bottom: 15px;
    right: 25px;
    font-family: 'Outfit', sans-serif;
    font-size: 4.5rem;
    font-weight: 800;
    color: rgba(96, 165, 250, 0.035);
    pointer-events: none;
    z-index: 1;
  }

  .outline-container {
    position: relative;
    max-width: 1140px;
    margin: 0 auto;
    z-index: 2;
  }

  /* Header */
  .outline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .sub-heading-tag {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #60a5fa;
    margin-bottom: 4px;
  }

  .main-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem; /* Clean, bold mid-size */
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: -0.3px;
  }

  /* Button */
  .outline-translate-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid rgba(96, 165, 250, 0.4);
    color: #f1f5f9;
    font-family: 'Plus Jakarta Sans', 'Padauk', sans-serif;
    font-size: 0.86rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
  }

  .outline-translate-btn:hover {
    background: rgba(30, 136, 229, 0.2);
    border-color: #60a5fa;
    color: #ffffff;
    box-shadow: 0 0 14px rgba(96, 165, 250, 0.2);
  }

  /* Lead Sentence */
  .mission-statement {
    margin: 24px 0 28px 0;
    padding-left: 16px;
    border-left: 3.5px solid #3b82f6;
  }

  .mission-statement p {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.05rem;
    line-height: 1.65;
    color: #cbd5e1;
  }

  /* 2-Column Grid */
  .outline-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 36px;
  }

  .outline-list .outline-row:last-child {
    grid-column: span 2;
  }

  /* Rows */
  .outline-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.25s ease;
  }

  .outline-row:hover {
    padding-left: 6px;
    border-bottom-color: rgba(96, 165, 250, 0.35);
  }

  .row-num {
    flex-shrink: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #60a5fa;
    width: 28px;
    line-height: 1.4;
  }

  .row-body {
    flex: 1;
  }

  .row-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.08rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
    letter-spacing: -0.2px;
  }

  .row-desc {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.88rem;
    color: #94a3b8;
    line-height: 1.55;
  }

  /* Myanmar Language Adjustments */
  .lang-mm {
    font-family: 'Padauk', 'Noto Sans Myanmar', sans-serif !important;
  }

  .mission-statement p.lang-mm {
    font-size: 1.02rem;
    line-height: 1.85;
  }

  .outline-list.lang-mm .row-num {
    font-family: 'Padauk', sans-serif;
    font-size: 1.2rem;
  }

  .outline-list.lang-mm .row-title {
    font-family: 'Padauk', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
  }

  .outline-list.lang-mm .row-desc {
    font-family: 'Padauk', sans-serif;
    font-size: 0.9rem;
    line-height: 1.75;
    color: #cbd5e1;
  }

  .hidden {
    display: none !important;
  }

  /* Responsive Adjustments */
  @media screen and (max-width: 820px) {
    .objective-outline-section {
      padding: 36px 18px;
    }

    .outline-list {
      grid-template-columns: 1fr;
      gap: 12px;
    }

    .outline-list .outline-row:last-child {
      grid-column: span 1;
    }

    .outline-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 12px;
    }
  }

    :root {
      --blue-primary: #1565c0;
      --blue-secondary: #0d47a1;
      --blue-accent: #1e88e5;
      --blue-light: #e3f2fd;
      --blue-dark-bg: #0a192f;
      --card-bg: rgba(13, 37, 72, 0.95);

      --white: #ffffff;
      --text-main: #f0f4f8;
      --text-muted: #94a3b8;
      --text-subtle: #64748b;

      --font-heading: 'Outfit', sans-serif;
      --font-body: 'Plus Jakarta Sans', sans-serif;
      --font-mono: 'Fira Code', monospace;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      background-color: var(--blue-dark-bg);
      color: var(--text-main);
      font-family: var(--font-body);
      font-size: 16px;
      line-height: 1.6;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      overflow-x: hidden;
      padding-top: 110px; /* Space for fixed banner + nav */
    }

    /* ==========================================================================
       TOP RUNNING BANNER
       ========================================================================== */
    .top-banner {
      width: 100%;
      height: 35px;
      background: linear-gradient(90deg, var(--blue-secondary), var(--blue-accent));
      color: var(--white);
      font-size: 0.88rem;
      font-weight: 600;
      position: fixed;
      top: 0;
      left: 0;
      z-index: 2000;
      display: flex;
      align-items: center;
      overflow: hidden;
    }

    .top-banner span {
      display: inline-block;
      white-space: nowrap;
      padding-left: 100%;
      animation: scrollBanner 24s linear infinite;
    }

    @keyframes scrollBanner {
      0% { transform: translateX(0); }
      100% { transform: translateX(-100%); }
    }

    /* ==========================================================================
       NAVBAR
       ========================================================================== */
    .top-navbar {
      width: 100%;
      position: fixed;
      top: 35px;
      left: 0;
      padding: 10px 24px;
      background: rgba(10, 25, 47, 0.92);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      border-bottom: 1px solid rgba(30, 136, 229, 0.35);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      transition: all 0.3s ease;
      z-index: 1500;
    }

    .top-navbar.scrolled {
      background: rgba(8, 20, 38, 0.98);
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
      padding: 8px 24px;
    }

    /* Logo & Branding */
    .top-logo {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-shrink: 0;
    }

    .top-logo img {
      display: block;
      object-fit: contain;
      background: rgba(255, 255, 255, 0.05);
    }

    .top-logo.left img {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      border: 1.5px solid var(--blue-accent);
    }

   .top-logo.right img {
      width: 80px;
      height: 50px;
      border-radius: 6px;
      
    }

    .brand-text-group {
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 2px;
      line-height: 1.2;
    }

    .brand-name {
      font-family: var(--font-heading);
      font-size: 1.15rem;
      font-weight: 700;
      letter-spacing: 0.3px;
      color: var(--white);
      white-space: nowrap;
      text-shadow: 0 2px 6px rgba(30, 136, 229, 0.4);
    }

    .brand-subtitle {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .badge-grade {
      font-size: 0.65rem;
      font-weight: 700;
      letter-spacing: 1px;
      color: #64b5f6;
      background: rgba(30, 136, 229, 0.15);
      border: 1px solid rgba(100, 181, 246, 0.3);
      padding: 1px 6px;
      border-radius: 4px;
      text-transform: uppercase;
    }

    .sub-dot {
      font-size: 0.6rem;
      color: var(--text-muted);
      opacity: 0.6;
    }

    .badge-subject {
      font-size: 0.65rem;
      font-weight: 600;
      letter-spacing: 1.2px;
      color: var(--text-muted);
      text-transform: uppercase;
    }

    /* Links */
    .top-links {
      list-style: none;
      display: flex;
      align-items: center;
      gap: 18px;
    }

    .top-links a {
      color: var(--text-main);
      text-decoration: none;
      font-size: 0.92rem;
      font-weight: 600;
      padding: 6px 2px;
      position: relative;
      transition: color 0.25s ease;
    }

    .top-links a::after {
      content: "";
      position: absolute;
      bottom: -2px;
      left: 0;
      width: 0%;
      height: 2.5px;
      background: var(--blue-accent);
      transition: width 0.25s ease;
    }

    .top-links a:hover,
    .top-links a.active {
      color: var(--blue-light);
    }

    .top-links a:hover::after,
    .top-links a.active::after {
      width: 100%;
    }

    /* Header Right Actions */
    .top-right-group {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-shrink: 0;
    }

    .nav-exit-btn {
      background: linear-gradient(135deg, #d32f2f, #b71c1c);
      color: var(--white);
      border: none;
      border-radius: 6px;
      padding: 6px 14px;
      font-size: 0.88rem;
      font-family: var(--font-body);
      font-weight: 600;
      cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .nav-exit-btn:hover {
      transform: translateY(-1px);
      box-shadow: 0 3px 10px rgba(211, 47, 47, 0.4);
    }

    /* Mobile Hamburger */
    .nav-toggle {
      display: none;
      flex-direction: column;
      justify-content: space-between;
      width: 26px;
      height: 20px;
      background: transparent;
      border: none;
      cursor: pointer;
      padding: 0;
      z-index: 1600;
    }

    .nav-toggle span {
      display: block;
      height: 2.5px;
      width: 100%;
      background: var(--white);
      border-radius: 3px;
      transition: all 0.3s ease;
    }

    .nav-toggle.open span:nth-child(1) {
      transform: translateY(8.5px) rotate(45deg);
    }
    .nav-toggle.open span:nth-child(2) {
      opacity: 0;
    }
    .nav-toggle.open span:nth-child(3) {
      transform: translateY(-8.5px) rotate(-45deg);
    }

    /* ==========================================================================
       EXIT CONFIRMATION MODAL
       ========================================================================== */
    .exit-modal-overlay {
      position: fixed;
      inset: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(5, 12, 26, 0.75);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 9999;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    .exit-modal-overlay.active {
      opacity: 1;
      visibility: visible;
    }

    .exit-modal-card {
      width: 90%;
      max-width: 380px;
      background: var(--card-bg);
      border: 1px solid rgba(41, 121, 255, 0.35);
      border-radius: 14px;
      padding: 24px 20px;
      text-align: center;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(41, 121, 255, 0.2);
      transform: scale(0.92);
      transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .exit-modal-overlay.active .exit-modal-card {
      transform: scale(1);
    }

    .exit-modal-icon {
      font-size: 2.2rem;
      margin-bottom: 8px;
    }

    .exit-modal-title {
      font-family: var(--font-heading);
      font-size: 1.25rem;
      font-weight: 700;
      color: var(--white);
      margin-bottom: 8px;
    }

    .exit-modal-desc {
      font-size: 0.92rem;
      color: var(--text-muted);
      line-height: 1.5;
      margin-bottom: 22px;
    }

    .exit-modal-actions {
      display: flex;
      gap: 12px;
      justify-content: center;
    }

    .btn-modal-cancel,
    .btn-modal-confirm {
      flex: 1;
      font-family: var(--font-body);
      font-size: 0.9rem;
      font-weight: 600;
      padding: 9px 16px;
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .btn-modal-cancel {
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.2);
      color: var(--text-main);
    }

    .btn-modal-cancel:hover {
      background: rgba(255, 255, 255, 0.16);
      color: var(--white);
    }

    .btn-modal-confirm {
      background: linear-gradient(135deg, #dc2626, #b91c1c);
      border: 1px solid rgba(255, 255, 255, 0.2);
      color: var(--white);
      box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
    }

    .btn-modal-confirm:hover {
      background: linear-gradient(135deg, #ef4444, #dc2626);
      transform: translateY(-1px);
      box-shadow: 0 6px 16px rgba(220, 38, 38, 0.45);
    }

    /* ==========================================================================
       SITE FOOTER
       ========================================================================== */
    .site-footer {
      position: relative;
      width: 100%;
      background: linear-gradient(180deg, rgba(8, 20, 38, 0.85) 0%, #060e1d 100%);
      border-top: 1px solid rgba(41, 121, 255, 0.25);
      color: var(--text-muted);
      margin-top: auto;
      overflow: hidden;
    }

    .footer-glow-bar {
      position: absolute;
      top: -1px;
      left: 10%;
      width: 80%;
      height: 2px;
      background: linear-gradient(90deg, transparent, #2979ff, #60a5fa, transparent);
      box-shadow: 0 0 15px rgba(41, 121, 255, 0.6);
    }

    .footer-container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 50px 24px 35px 24px;
      display: grid;
      grid-template-columns: 2fr 1fr;
      gap: 40px;
    }

    .footer-heading {
      font-family: var(--font-heading);
      font-size: 1.05rem;
      font-weight: 700;
      color: var(--white);
      margin-bottom: 18px;
      position: relative;
      display: inline-block;
    }

    .footer-heading::after {
      content: "";
      position: absolute;
      bottom: -4px;
      left: 0;
      width: 24px;
      height: 2px;
      background: var(--blue-accent);
      border-radius: 2px;
    }

    .footer-logo-row {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 14px;
    }

    .footer-seal {
      width: 44px;
      height: 44px;
      object-fit: contain;
      border-radius: 50%;
      border: 1.5px solid var(--blue-accent);
    }

    .footer-brand-title {
      display: block;
      font-family: var(--font-heading);
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--white);
      line-height: 1.2;
      margin-bottom: 3px;
    }

    .footer-tags {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .footer-desc {
      font-size: 0.88rem;
      line-height: 1.55;
      color: var(--text-muted);
      margin-bottom: 16px;
      max-width: 540px;
    }

    .footer-formula-pill {
      display: inline-flex;
      align-items: center;
      background: rgba(41, 121, 255, 0.08);
      border: 1px solid rgba(41, 121, 255, 0.3);
      padding: 6px 14px;
      border-radius: 8px;
      box-shadow: inset 0 0 10px rgba(41, 121, 255, 0.05);
    }

    .footer-formula-pill code {
      font-family: var(--font-mono);
      font-size: 0.82rem;
      color: #93c5fd;
    }

    .footer-specs-list {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-bottom: 16px;
    }

    .spec-item {
      display: flex;
      flex-direction: column;
      font-size: 0.85rem;
    }

    .spec-label {
      font-size: 0.75rem;
      color: var(--text-subtle);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      font-weight: 600;
    }

    .spec-val {
      color: var(--text-main);
      font-weight: 500;
    }

    .footer-partner-logo {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.1);
      padding: 6px 12px;
      border-radius: 8px;
      width: fit-content;
    }

    .footer-partner-logo img {
      width: 28px;
      height: 28px;
      object-fit: contain;
      border-radius: 4px;
    }

    .footer-partner-logo span {
      font-size: 0.8rem;
      font-weight: 600;
      color: #cbd5e1;
    }

    /* Footer Bottom Bar */
    .footer-bottom {
      border-top: 1px solid rgba(255, 255, 255, 0.06);
      background: rgba(4, 10, 20, 0.95);
      padding: 18px 24px;
    }

    .footer-bottom-inner {
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 12px;
    }

    .copyright-text {
      font-size: 0.82rem;
      color: var(--text-subtle);
    }

    .copyright-text strong {
      color: var(--text-muted);
    }

    .back-to-top {
      color: #60a5fa;
      font-size: 0.82rem;
      font-weight: 600;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 5px 12px;
      border-radius: 6px;
      background: rgba(41, 121, 255, 0.1);
      border: 1px solid rgba(41, 121, 255, 0.25);
      transition: all 0.2s ease;
    }

    .back-to-top:hover {
      background: rgba(41, 121, 255, 0.2);
      color: var(--white);
      transform: translateY(-2px);
    }

    /* ==========================================================================
       MEDIA QUERIES & RESPONSIVENESS
       ========================================================================== */
    @media screen and (max-width: 992px) {
      .nav-toggle {
        display: flex;
      }

      .nav-container {
        position: fixed;
        top: 75px;
        right: -100%;
        width: 260px;
        height: calc(100vh - 75px);
        background: rgba(10, 25, 47, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-left: 1px solid rgba(30, 136, 229, 0.3);
        padding: 30px 20px;
        transition: right 0.3s ease;
        box-shadow: -6px 0 20px rgba(0, 0, 0, 0.5);
      }

      .nav-container.open {
        right: 0;
      }

      .top-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
      }

      .top-links a {
        font-size: 1.05rem;
        display: block;
        width: 100%;
      }

      .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
      }
    }

    @media screen and (max-width: 600px) {
      body {
        padding-top: 100px;
      }

      .top-navbar {
        padding: 8px 14px;
      }

      .brand-name {
        font-size: 0.92rem;
      }

      .badge-grade,
      .badge-subject {
        font-size: 0.58rem;
        letter-spacing: 0.8px;
      }

      .top-logo.left img,
      .top-logo.right img {
        width: 34px;
        height: 34px;
      }

      .nav-exit-btn {
        padding: 5px 10px;
        font-size: 0.8rem;
      }

      .footer-container {
        padding: 36px 16px 24px 16px;
      }

      .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
      }

      .footer-formula-pill {
        width: 100%;
        justify-content: center;
      }
    }

#kzh-binomial-portal {
  --kzh-bg-deep: #050b14;
  --kzh-surface-card: #0c1626;
  --kzh-surface-lifted: #132238;
  --kzh-surface-border: #1e3557;
  --kzh-border-bright: #38bdf8;
  
  --kzh-accent-cyan: #38bdf8;
  --kzh-accent-blue: #2563eb;
  --kzh-accent-gold: #f59e0b;
  --kzh-accent-emerald: #10b981;

  --kzh-text-head: #ffffff;
  --kzh-text-body: #cbd5e1;
  --kzh-text-dim: #94a3b8;

  --kzh-font-heading: 'Montserrat', 'Plus Jakarta Sans', sans-serif;
  --kzh-font-body: 'Poppins', -apple-system, sans-serif;
  --kzh-font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  width: 100%;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background-color: var(--kzh-bg-deep);
  color: var(--kzh-text-body);
  font-family: var(--kzh-font-body);
  overflow-x: hidden;
}

/* ==========================================================================
   SECTION 1: HERO VIEWPORT & VIDEO MOTION BACKGROUND
   ========================================================================== */
.kzh-hero-viewport {
  position: relative;
  min-height: calc(100vh - 110px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 24px 80px;
  overflow: hidden;
  box-sizing: border-box;
}

/* Video Backdrop Layers */
.kzh-video-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.kzh-bg-video-stream {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: contrast(110%) brightness(55%);
  transform: scale(1.02);
}

.kzh-video-scrim {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    rgba(5, 11, 20, 0.72) 0%,
    rgba(5, 11, 20, 0.94) 75%,
    var(--kzh-bg-deep) 100%
  );
  z-index: 2;
}

.kzh-math-mesh-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(56, 189, 248, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 3;
}

/* Foreground Content Card */
.kzh-hero-deck {
  position: relative;
  z-index: 5;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Academic Pill */
.kzh-academic-tagline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 30px;
  background: rgba(12, 22, 38, 0.85);
  border: 1px solid var(--kzh-surface-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  margin-bottom: 24px;
}

.kzh-pulse-indicator {
  width: 8px;
  height: 8px;
  background-color: var(--kzh-accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: kzhPulse 2s infinite;
}

@keyframes kzhPulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.kzh-tag-text {
  font-family: var(--kzh-font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--kzh-accent-cyan);
  text-transform: uppercase;
}

/* Main Display Title */
.kzh-portal-heading {
  font-family: var(--kzh-font-heading);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--kzh-text-head);
  letter-spacing: -0.5px;
  margin: 0 0 16px 0;
}

.kzh-gradient-math {
  background: linear-gradient(135deg, #38bdf8 20%, #60a5fa 60%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  text-shadow: 0 0 30px rgba(56, 189, 248, 0.35);
}

/* Mathematical Formula Banner */
.kzh-equation-pill {
  background: rgba(15, 26, 46, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 10px 24px;
  border-radius: 8px;
  margin-bottom: 22px;
  box-shadow: inset 0 0 16px rgba(56, 189, 248, 0.1);
}

.kzh-equation-pill code {
  font-family: var(--kzh-font-mono);
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  color: #f1f5f9;
  letter-spacing: 0.5px;
}

/* Description */
.kzh-hero-lead {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--kzh-text-body);
  line-height: 1.7;
  max-width: 720px;
  margin: 0 0 28px 0;
}

/* Presenter Metadata Card */
.kzh-presenter-badge {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 28px;
  border-radius: 12px;
  background: rgba(19, 34, 56, 0.7);
  border: 1px solid var(--kzh-surface-border);
  backdrop-filter: blur(8px);
  margin-bottom: 36px;
}

.kzh-presenter-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--kzh-text-dim);
}

.kzh-presenter-name {
  font-family: var(--kzh-font-heading);
  font-size: 1.25rem;
  color: var(--kzh-accent-cyan);
}

.kzh-presenter-school {
  font-size: 0.85rem;
  color: var(--kzh-text-dim);
}

/* Start Learning Button */
.kzh-hero-action-shelf {
  display: flex;
  justify-content: center;
}

.kzh-btn-start-learning {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 36px;
  font-family: var(--kzh-font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #040d1a;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.45);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.kzh-btn-start-learning:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 35px rgba(56, 189, 248, 0.6);
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
}

.kzh-btn-arrow-icon {
  width: 20px;
  height: 20px;
  stroke: #040d1a;
  transition: transform 0.25s ease;
}

.kzh-btn-start-learning:hover .kzh-btn-arrow-icon {
  transform: translateY(3px);
}

/* Mouse Scroll Indicator */
.kzh-scroll-cue {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  opacity: 0.7;
}

.kzh-mouse-wheel {
  width: 20px;
  height: 32px;
  border: 2px solid var(--kzh-accent-cyan);
  border-radius: 16px;
  display: inline-block;
  position: relative;
}

.kzh-mouse-wheel::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 6px;
  background-color: var(--kzh-accent-cyan);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: kzhWheel 1.6s infinite ease-in-out;
}

@keyframes kzhWheel {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 12px); opacity: 0; }
}

/* ==========================================================================
   SECTION 2: CURRICULUM SYLLABUS DIRECTORY
   ========================================================================== */
.kzh-curriculum-section {
  width: 90%;
  max-width: 1200px;
  margin: 60px auto 100px;
  padding-top: 40px;
}

/* Section Header */
.kzh-module-header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 45px;
}

.kzh-header-accent-line {
  width: 5px;
  height: 70px;
  background: linear-gradient(180deg, var(--kzh-accent-cyan), var(--kzh-accent-blue));
  border-radius: 4px;
  flex-shrink: 0;
}

.kzh-section-pretitle {
  display: block;
  font-family: var(--kzh-font-mono);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--kzh-accent-cyan);
  margin-bottom: 6px;
}

.kzh-section-title {
  font-family: var(--kzh-font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--kzh-text-head);
  margin: 0 0 10px 0;
}

.kzh-section-description {
  color: var(--kzh-text-dim);
  font-size: 1.02rem;
  max-width: 780px;
  line-height: 1.6;
  margin: 0;
}

/* Cards Grid */
.kzh-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 26px;
}

/* Topic Card */
.kzh-topic-card {
  background: var(--kzh-surface-card);
  border: 1px solid var(--kzh-surface-border);
  border-radius: 16px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.kzh-topic-card:hover {
  transform: translateY(-5px);
  border-color: var(--kzh-border-bright);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.55);
}

.kzh-topic-card.featured-highlight {
  border-top: 4px solid var(--kzh-accent-cyan);
  background: linear-gradient(180deg, rgba(19, 34, 56, 0.6) 0%, var(--kzh-surface-card) 100%);
}

.kzh-card-index {
  font-family: var(--kzh-font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--kzh-accent-cyan);
  margin-bottom: 14px;
}

.kzh-card-icon-frame {
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.kzh-card-headline {
  font-family: var(--kzh-font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--kzh-text-head);
  margin: 0 0 12px 0;
}

.kzh-card-summary {
  color: var(--kzh-text-body);
  font-size: 0.94rem;
  line-height: 1.65;
  margin: 0 0 18px 0;
  flex-grow: 1;
}

.kzh-card-takeaway-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  border-top: 1px dashed var(--kzh-surface-border);
  padding-top: 14px;
}

.kzh-card-takeaway-list li {
  font-size: 0.85rem;
  color: var(--kzh-text-dim);
  margin-bottom: 6px;
  position: relative;
  padding-left: 14px;
}

.kzh-card-takeaway-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--kzh-accent-cyan);
}

.kzh-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  background: var(--kzh-surface-lifted);
  border: 1px solid var(--kzh-surface-border);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.kzh-card-link:hover {
  background: var(--kzh-accent-blue);
  border-color: var(--kzh-accent-blue);
  color: #ffffff;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 900px) {
  .kzh-portal-heading {
    font-size: 2.6rem;
  }
  .kzh-module-header {
    flex-direction: column;
    gap: 12px;
  }
  .kzh-header-accent-line {
    width: 60px;
    height: 4px;
  }
}

@media (max-width: 600px) {
  .kzh-hero-viewport {
    padding: 40px 16px 60px;
  }
  .kzh-portal-heading {
    font-size: 2rem;
  }
  .kzh-academic-tagline {
    padding: 6px 12px;
  }
  .kzh-tag-text {
    font-size: 0.72rem;
  }
  .kzh-btn-start-learning {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
  }
  .kzh-curriculum-section {
    width: 94%;
  }
  .kzh-module-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   VIDEO BUTTON & COPYRIGHT CITATION CARD
   ========================================================================== */

.lesson-video-section {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Container Frame */
.video-cta-card {
  background: #091628;
  border: 1px solid #223552;
  border-left: 5px solid #ff0033; /* YouTube Accent */
  border-radius: 8px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 6px 20px #040810;
}

.video-cta-info {
  flex: 1 1 65%;
}

.video-badge {
  display: inline-block;
  background: rgba(255, 0, 51, 0.15);
  color: #ff4d6d;
  border: 1px solid rgba(255, 0, 51, 0.35);
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.video-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.video-desc {
  color: #cbd5e1;
  font-size: 0.94rem;
  line-height: 1.6;
  margin: 0;
}

/* YouTube Action Button */
.video-cta-action {
  flex-shrink: 0;
}

.yt-watch-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #e60026, #b3001e);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 22px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(230, 0, 38, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.yt-watch-btn:hover {
  background: linear-gradient(135deg, #ff1a3c, #cc0022);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 0, 38, 0.6);
  color: #ffffff;
}

.yt-icon {
  width: 22px;
  height: 22px;
  fill: #ffffff;
  flex-shrink: 0;
}

/* Respectful Credit / Copyright Citation Box */
.video-credit-box {
  background: #080f1d;
  border: 1px solid #1a2a42;
  border-radius: 6px;
  padding: 18px 22px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.credit-icon svg {
  width: 20px;
  height: 20px;
  stroke: #38bdf8;
  flex-shrink: 0;
  margin-top: 3px;
}

.credit-content {
  flex: 1;
}

.credit-heading {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #38bdf8;
  margin-bottom: 6px;
}

.credit-text {
  font-size: 0.82rem;
  line-height: 1.65;
  color: #94a3b8;
  margin: 0 0 8px 0;
}

.credit-source {
  font-size: 0.82rem;
  color: #cbd5e1;
  margin: 0;
}

.credit-link {
  color: #38bdf8;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.credit-link:hover {
  color: #7dd3fc;
}

/* Responsive Stacking */
@media (max-width: 768px) {
  .video-cta-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 16px;
  }

  .video-cta-action {
    width: 100%;
  }

  .yt-watch-btn {
    width: 100%;
    justify-content: center;
  }

  .video-credit-box {
    padding: 16px;
  }
}

/* ==========================================================================
   PORTAL CSS SYSTEM: KHANT ZAW HEIN MATHEMATICS SUITE
   Namespace: #kzh-binomial-portal / .kzh-*
   ========================================================================== */

#kzh-binomial-portal {
  --kzh-bg-deep: #050b14;
  --kzh-surface-card: #0c1626;
  --kzh-surface-lifted: #132238;
  --kzh-surface-border: #1e3557;
  --kzh-border-bright: #38bdf8;
  
  --kzh-accent-cyan: #38bdf8;
  --kzh-accent-blue: #2563eb;
  --kzh-accent-gold: #f59e0b;
  --kzh-accent-emerald: #10b981;

  --kzh-text-head: #ffffff;
  --kzh-text-body: #cbd5e1;
  --kzh-text-dim: #94a3b8;

  --kzh-font-heading: 'Montserrat', 'Plus Jakarta Sans', sans-serif;
  --kzh-font-body: 'Poppins', -apple-system, sans-serif;
  --kzh-font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  width: 100%;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background-color: var(--kzh-bg-deep);
  color: var(--kzh-text-body);
  font-family: var(--kzh-font-body);
  overflow-x: hidden;
}

/* ==========================================================================
   SECTION 1: HERO VIEWPORT & VIDEO MOTION BACKGROUND
   ========================================================================== */
.kzh-hero-viewport {
  position: relative;
  min-height: calc(100vh - 110px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 24px 80px;
  overflow: hidden;
  box-sizing: border-box;
}

/* Video Backdrop Layers */
.kzh-video-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.kzh-bg-video-stream {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: contrast(110%) brightness(55%);
  transform: scale(1.02);
}

.kzh-video-scrim {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    rgba(5, 11, 20, 0.72) 0%,
    rgba(5, 11, 20, 0.94) 75%,
    var(--kzh-bg-deep) 100%
  );
  z-index: 2;
}

.kzh-math-mesh-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(56, 189, 248, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 3;
}

/* Foreground Content Card */
.kzh-hero-deck {
  position: relative;
  z-index: 5;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Academic Pill */
.kzh-academic-tagline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 30px;
  background: rgba(12, 22, 38, 0.85);
  border: 1px solid var(--kzh-surface-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  margin-bottom: 24px;
}

.kzh-pulse-indicator {
  width: 8px;
  height: 8px;
  background-color: var(--kzh-accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: kzhPulse 2s infinite;
}

@keyframes kzhPulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.kzh-tag-text {
  font-family: var(--kzh-font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--kzh-accent-cyan);
  text-transform: uppercase;
}

/* Main Display Title */
.kzh-portal-heading {
  font-family: var(--kzh-font-heading);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--kzh-text-head);
  letter-spacing: -0.5px;
  margin: 0 0 16px 0;
}

.kzh-gradient-math {
  background: linear-gradient(135deg, #38bdf8 20%, #60a5fa 60%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  text-shadow: 0 0 30px rgba(56, 189, 248, 0.35);
}

/* Mathematical Formula Banner */
.kzh-equation-pill {
  background: rgba(15, 26, 46, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 10px 24px;
  border-radius: 8px;
  margin-bottom: 22px;
  box-shadow: inset 0 0 16px rgba(56, 189, 248, 0.1);
}

.kzh-equation-pill code {
  font-family: var(--kzh-font-mono);
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  color: #f1f5f9;
  letter-spacing: 0.5px;
}

/* Description */
.kzh-hero-lead {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--kzh-text-body);
  line-height: 1.7;
  max-width: 720px;
  margin: 0 0 28px 0;
}

/* Presenter Metadata Card */
.kzh-presenter-badge {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 28px;
  border-radius: 12px;
  background: rgba(19, 34, 56, 0.7);
  border: 1px solid var(--kzh-surface-border);
  backdrop-filter: blur(8px);
  margin-bottom: 36px;
}

.kzh-presenter-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--kzh-text-dim);
}

.kzh-presenter-name {
  font-family: var(--kzh-font-heading);
  font-size: 1.25rem;
  color: var(--kzh-accent-cyan);
}

.kzh-presenter-school {
  font-size: 0.85rem;
  color: var(--kzh-text-dim);
}

/* Start Learning Button */
.kzh-hero-action-shelf {
  display: flex;
  justify-content: center;
}

.kzh-btn-start-learning {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 36px;
  font-family: var(--kzh-font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #040d1a;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.45);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.kzh-btn-start-learning:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 35px rgba(56, 189, 248, 0.6);
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
}

.kzh-btn-arrow-icon {
  width: 20px;
  height: 20px;
  stroke: #040d1a;
  transition: transform 0.25s ease;
}

.kzh-btn-start-learning:hover .kzh-btn-arrow-icon {
  transform: translateY(3px);
}

/* Mouse Scroll Indicator */
.kzh-scroll-cue {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  opacity: 0.7;
}

.kzh-mouse-wheel {
  width: 20px;
  height: 32px;
  border: 2px solid var(--kzh-accent-cyan);
  border-radius: 16px;
  display: inline-block;
  position: relative;
}

.kzh-mouse-wheel::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 6px;
  background-color: var(--kzh-accent-cyan);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: kzhWheel 1.6s infinite ease-in-out;
}

@keyframes kzhWheel {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 12px); opacity: 0; }
}

/* ==========================================================================
   SECTION 2: CURRICULUM SYLLABUS DIRECTORY
   ========================================================================== */
.kzh-curriculum-section {
  width: 90%;
  max-width: 1200px;
  margin: 60px auto 100px;
  padding-top: 40px;
}

/* Section Header */
.kzh-module-header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 45px;
}

.kzh-header-accent-line {
  width: 5px;
  height: 70px;
  background: linear-gradient(180deg, var(--kzh-accent-cyan), var(--kzh-accent-blue));
  border-radius: 4px;
  flex-shrink: 0;
}

.kzh-section-pretitle {
  display: block;
  font-family: var(--kzh-font-mono);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--kzh-accent-cyan);
  margin-bottom: 6px;
}

.kzh-section-title {
  font-family: var(--kzh-font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--kzh-text-head);
  margin: 0 0 10px 0;
}

.kzh-section-description {
  color: var(--kzh-text-dim);
  font-size: 1.02rem;
  max-width: 780px;
  line-height: 1.6;
  margin: 0;
}

/* Cards Grid */
.kzh-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 26px;
}

/* Topic Card */
.kzh-topic-card {
  background: var(--kzh-surface-card);
  border: 1px solid var(--kzh-surface-border);
  border-radius: 16px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.kzh-topic-card:hover {
  transform: translateY(-5px);
  border-color: var(--kzh-border-bright);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.55);
}

.kzh-topic-card.featured-highlight {
  border-top: 4px solid var(--kzh-accent-cyan);
  background: linear-gradient(180deg, rgba(19, 34, 56, 0.6) 0%, var(--kzh-surface-card) 100%);
}

.kzh-card-index {
  font-family: var(--kzh-font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--kzh-accent-cyan);
  margin-bottom: 14px;
}

.kzh-card-icon-frame {
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.kzh-card-headline {
  font-family: var(--kzh-font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--kzh-text-head);
  margin: 0 0 12px 0;
}

.kzh-card-summary {
  color: var(--kzh-text-body);
  font-size: 0.94rem;
  line-height: 1.65;
  margin: 0 0 18px 0;
  flex-grow: 1;
}

.kzh-card-takeaway-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  border-top: 1px dashed var(--kzh-surface-border);
  padding-top: 14px;
}

.kzh-card-takeaway-list li {
  font-size: 0.85rem;
  color: var(--kzh-text-dim);
  margin-bottom: 6px;
  position: relative;
  padding-left: 14px;
}

.kzh-card-takeaway-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--kzh-accent-cyan);
}

.kzh-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  background: var(--kzh-surface-lifted);
  border: 1px solid var(--kzh-surface-border);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.kzh-card-link:hover {
  background: var(--kzh-accent-blue);
  border-color: var(--kzh-accent-blue);
  color: #ffffff;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 900px) {
  .kzh-portal-heading {
    font-size: 2.6rem;
  }
  .kzh-module-header {
    flex-direction: column;
    gap: 12px;
  }
  .kzh-header-accent-line {
    width: 60px;
    height: 4px;
  }
}

@media (max-width: 600px) {
  .kzh-hero-viewport {
    padding: 40px 16px 60px;
  }
  .kzh-portal-heading {
    font-size: 2rem;
  }
  .kzh-academic-tagline {
    padding: 6px 12px;
  }
  .kzh-tag-text {
    font-size: 0.72rem;
  }
  .kzh-btn-start-learning {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
  }
  .kzh-curriculum-section {
    width: 94%;
  }
  .kzh-module-grid {
    grid-template-columns: 1fr;
  }
}

/* Base Body */
*
/* ==========================================================================
   ACADEMIC MATH LESSON LAYOUT & FRAMES
   Clean, distraction-free educational styling
   ========================================================================== */

/* Main Document Framing */
.content-container {
  flex: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  width: 100%;
}

/* --- Section 1: Hero / Topic Header --- */
.hero-section {
  background: var(--card-bg, #0c1a2e);
  border: 1px solid rgba(144, 202, 249, 0.18);
  border-top: 4px solid #1e88e5;
  border-radius: 8px;
  padding: 36px 32px;
  text-align: left;
  margin-bottom: 36px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

/* Left: Text Content */
.hero-text-content {
  flex: 1 1 60%;
}

.badge {
  display: inline-block;
  background: rgba(30, 136, 229, 0.12);
  color: #90caf9;
  border: 1px solid rgba(144, 202, 249, 0.3);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.hero-section h1 {
  font-family: var(--font-heading, "Montserrat", sans-serif);
  font-size: 2.1rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 12px;
}

.hero-section p {
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 820px;
  margin: 0;
}

/* Right: Transparent Cutout Image */
.hero-image-side {
  flex: 1 1 40%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-transparent-img {
  width: 100%;
  max-width: 320px;
  height: auto;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 10px 20px rgba(56, 189, 248, 0.25));
  animation: floatMathArt 4s ease-in-out infinite;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.hero-transparent-img:hover {
  transform: scale(1.04);
  filter: drop-shadow(0 14px 28px rgba(56, 189, 248, 0.45));
}

/* Floating Animation */
@keyframes floatMathArt {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Responsive / Mobile View */
@media (max-width: 820px) {
  .hero-section {
    flex-direction: column-reverse;
    text-align: center;
    gap: 24px;
    padding: 28px 20px;
  }

  .hero-text-content {
    flex: 1 1 100%;
  }

  .hero-image-side {
    width: 100%;
  }

  .hero-transparent-img {
    max-width: 220px;
  }

  .hero-section h1 {
    font-size: 1.75rem;
  }
}/* ==========================================================================
   VIDEO BUTTON & COPYRIGHT CITATION CARD
   ========================================================================== */

.lesson-video-section {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Container Frame */
.video-cta-card {
  background: #091628;
  border: 1px solid #223552;
  border-left: 5px solid #ff0033; /* YouTube Accent */
  border-radius: 8px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 6px 20px #040810;
}

.video-cta-info {
  flex: 1 1 65%;
}

.video-badge {
  display: inline-block;
  background: rgba(255, 0, 51, 0.15);
  color: #ff4d6d;
  border: 1px solid rgba(255, 0, 51, 0.35);
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.video-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.video-desc {
  color: #cbd5e1;
  font-size: 0.94rem;
  line-height: 1.6;
  margin: 0;
}

/* YouTube Action Button */
.video-cta-action {
  flex-shrink: 0;
}

.yt-watch-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #e60026, #b3001e);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 22px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(230, 0, 38, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.yt-watch-btn:hover {
  background: linear-gradient(135deg, #ff1a3c, #cc0022);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 0, 38, 0.6);
  color: #ffffff;
}

.yt-icon {
  width: 22px;
  height: 22px;
  fill: #ffffff;
  flex-shrink: 0;
}

/* Respectful Credit / Copyright Citation Box */
.video-credit-box {
  background: #080f1d;
  border: 1px solid #1a2a42;
  border-radius: 6px;
  padding: 18px 22px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.credit-icon svg {
  width: 20px;
  height: 20px;
  stroke: #38bdf8;
  flex-shrink: 0;
  margin-top: 3px;
}

.credit-content {
  flex: 1;
}

.credit-heading {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #38bdf8;
  margin-bottom: 6px;
}

.credit-text {
  font-size: 0.82rem;
  line-height: 1.65;
  color: #94a3b8;
  margin: 0 0 8px 0;
}

.credit-source {
  font-size: 0.82rem;
  color: #cbd5e1;
  margin: 0;
}

.credit-link {
  color: #38bdf8;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.credit-link:hover {
  color: #7dd3fc;
}

/* Responsive Stacking */
@media (max-width: 768px) {
  .video-cta-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 16px;
  }

  .video-cta-action {
    width: 100%;
  }

  .yt-watch-btn {
    width: 100%;
    justify-content: center;
  }

  .video-credit-box {
    padding: 16px;
  }
}

/* --- Section 2: Lesson Main Modules --- */
.lesson-card {
  background: var(--card-bg, #0c1a2e);
  border: 1px solid rgba(144, 202, 249, 0.16);
  border-radius: 8px;
  padding: 36px 36px;
  margin-top: 36px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 2px solid rgba(144, 202, 249, 0.15);
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.section-title h2 {
  font-family: var(--font-heading, "Montserrat", sans-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.subsection-heading {
  font-family: var(--font-heading, "Montserrat", sans-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: #e2e8f0;
  margin: 28px 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.subsection-heading::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 16px;
  background: #1e88e5;
  border-radius: 2px;
}

/* --- Section 3: Math Formula Displays & Theoretical Callouts --- */
.math-display-card {
  background: rgba(4, 12, 24, 0.65);
  border: 1px solid rgba(144, 202, 249, 0.2);
  border-left: 3px solid #1e88e5;
  padding: 16px 22px;
  border-radius: 4px;
  margin: 20px 0;
  overflow-x: auto;
  font-size: 1.05rem;
}

.formula-callout {
  background: rgba(13, 27, 49, 0.6);
  border: 1px solid rgba(144, 202, 249, 0.22);
  border-left: 4px solid #64b5f6;
  padding: 18px 22px;
  border-radius: 6px;
  margin: 20px 0;
}

/* Formal Academic Theorem Box */
.theorem-card {
  background: rgba(10, 24, 46, 0.75);
  border: 1px solid rgba(30, 136, 229, 0.4);
  border-radius: 6px;
  padding: 24px 26px;
  margin: 30px 0;
  position: relative;
}

.theorem-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  border-bottom: 1px dashed rgba(144, 202, 249, 0.2);
  padding-bottom: 10px;
}

.theorem-tag {
  background: #1565c0;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.highlight-formula {
  background: rgba(3, 10, 20, 0.7);
  border-radius: 4px;
  padding: 16px 20px;
  margin: 16px 0;
  overflow-x: auto;
  border: 1px solid rgba(100, 181, 246, 0.25);
  text-align: center;
}

.highlight-formula-sm {
  background: rgba(3, 10, 20, 0.6);
  border-radius: 4px;
  padding: 8px 14px;
  margin: 10px 0;
  overflow-x: auto;
  display: inline-block;
  border: 1px solid rgba(144, 202, 249, 0.15);
}

/* Mathematical Proof Layout */
.proof-collapsible {
  background: rgba(255, 255, 255, 0.02);
  border-left: 2px solid #64b5f6;
  padding: 14px 20px;
  margin-top: 16px;
  font-size: 0.96rem;
}

.proof-steps {
  padding-left: 22px;
  margin: 10px 0;
  line-height: 1.85;
  color: #cbd5e1;
}

/* --- Section 4: Pedagogical Takeaways & Grids --- */
.key-takeaways {
  background: rgba(21, 101, 192, 0.08);
  border: 1px solid rgba(30, 136, 229, 0.25);
  border-radius: 6px;
  padding: 20px 24px;
  margin: 24px 0;
}

.key-takeaways h3 {
  font-family: var(--font-heading, "Montserrat", sans-serif);
  font-size: 1.05rem;
  color: #90caf9;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.key-takeaways ul {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #e2e8f0;
  font-size: 0.98rem;
  line-height: 1.6;
}

.grid-two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin: 24px 0;
}

.info-card {
  background: rgba(15, 30, 52, 0.5);
  border: 1px solid rgba(144, 202, 249, 0.18);
  border-radius: 6px;
  padding: 20px;
}

.info-card.accent-blue {
  border-top: 3px solid #1e88e5;
}

/* --- Section 5: Pascal's Visual Triangle --- */
.pascal-section {
  margin: 32px 0;
  text-align: center;
}

.pascal-visual {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(6, 15, 30, 0.7);
  border: 1px solid rgba(144, 202, 249, 0.2);
  border-radius: 8px;
  padding: 24px 32px;
  margin-top: 14px;
  overflow-x: auto;
  max-width: 100%;
}

.pascal-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.pascal-row .power-label {
  color: #94a3b8;
  font-family: monospace;
  font-size: 0.85rem;
  font-weight: 600;
  margin-right: 12px;
  min-width: 44px;
  text-align: right;
}

.pascal-row span:not(.power-label) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 6px;
  background: rgba(30, 136, 229, 0.12);
  border: 1px solid rgba(144, 202, 249, 0.35);
  border-radius: 4px;
  font-family: monospace;
  font-weight: 600;
  color: #f8fafc;
  font-size: 0.9rem;
}

/* --- Section 6: Worked Examples & Show/Hide Solution --- */
.example-box {
  background: rgba(11, 23, 42, 0.5);
  border: 1px solid rgba(144, 202, 249, 0.18);
  border-radius: 6px;
  margin-bottom: 24px;
  overflow: hidden;
}

.example-header {
  padding: 14px 18px;
  background: rgba(18, 38, 66, 0.45);
  border-bottom: 1px solid rgba(144, 202, 249, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.example-badge {
  background: #1565c0;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.example-prompt {
  font-weight: 600;
  color: #f1f5f9;
  font-size: 0.98rem;
  flex: 1;
  min-width: 240px;
}

.toggle-btn {
  background: transparent;
  color: #90caf9;
  border: 1px solid rgba(144, 202, 249, 0.4);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.toggle-btn:hover {
  background: rgba(30, 136, 229, 0.15);
  border-color: #64b5f6;
  color: #ffffff;
}

.toggle-btn.active {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border-color: rgba(148, 163, 184, 0.3);
}

.example-subquestions {
  padding: 14px 20px;
  color: #e2e8f0;
  font-size: 0.96rem;
}

.example-subquestions ol {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.solution-block {
  padding: 20px 24px;
  border-top: 1px solid rgba(144, 202, 249, 0.18);
  background: rgba(5, 12, 22, 0.6);
  font-size: 0.96rem;
  line-height: 1.7;
}

.solution-block.collapsed {
  display: none;
}

.solution-block h4 {
  font-family: var(--font-heading, "Montserrat", sans-serif);
  color: #90caf9;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 12px;
}

.solution-part {
  margin-bottom: 16px;
  color: #cbd5e1;
}

/* --- Section 7: Academic Tables --- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 18px 0;
  border: 1px solid rgba(144, 202, 249, 0.2);
  border-radius: 4px;
}

.academic-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(8, 18, 34, 0.6);
  text-align: left;
  font-size: 0.95rem;
}

.academic-table th,
.academic-table td {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(144, 202, 249, 0.12);
}

.academic-table th {
  background: rgba(21, 101, 192, 0.15);
  color: #90caf9;
  font-weight: 600;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.academic-table tr:last-child td {
  border-bottom: none;
}

.academic-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Responsive Scaling */
@media (max-width: 768px) {
  .content-container {
    padding: 20px 14px 50px;
  }
  
  .lesson-card, 
  .hero-section {
    padding: 24px 18px;
  }
  
  .hero-section h1 {
    font-size: 1.7rem;
  }
  
  .pascal-row span:not(.power-label) {
    min-width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }
}
/* ==========================================================================
   MODAL & FOOTER
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(5, 12, 23, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 3000;
}

.modal-overlay.active {
  display: flex;
}

.exit-box {
  background: #0f274a;
  padding: 36px 40px;
  border-radius: 14px;
  text-align: center;
  border: 1px solid var(--blue-accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  max-width: 420px;
  width: 90%;
}

.exit-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.btn {
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-danger {
  background: #e53935;
  color: var(--white);
}

.btn-secondary {
  background: #37474f;
  color: var(--white);
}

